home *** CD-ROM | disk | FTP | other *** search
- Path: cpsc.ucalgary.ca!davidt
- From: davidt@cpsc.ucalgary.ca (David Taylor)
- Newsgroups: comp.lang.c++
- Subject: Re: Preprocessor derectives is insufficient for me
- Date: 5 Apr 1996 21:48:56 GMT
- Organization: University of Calgary CPSC
- Message-ID: <4k44g8$ikb@linux.cpsc.ucalgary.ca>
- References: <ABY08OnW53@npn-price.pskov.su>
- NNTP-Posting-Host: bh.cpsc.ucalgary.ca
-
-
- In article <ABY08OnW53@npn-price.pskov.su>,
- Dmitry Y. Pugachev <ivl@npn-price.pskov.su> wrote:
- >Hello all!
- >
- >Just look at this code
- >
- >#define DECLARE_CLASS(first_class,second_class,name_class) \
- >class name_class : virtual public first_class , virtual public second_class \
- >{ \
- >public: \
- > name_class(); \
- > ~name_class(); \
- >public: \
- > virtual base* operator&(classA&) \
- > virtual base* operator&(classB&) \
- >
- > . . .
- >
- > virtual base* operators&(classN&) \
- >};
- >
- >I have to filter some operations I don't need in specific name_class.
- >But a compiler don't allow to use #if in another #define statement :(
- >
- >May be there is a way to solve my problem ?
- >
-
- I would recommend using an awk or perl script to produce the code.
-
- --
- Andrew Taylor |email: davidt@cpsc.ucalgary.ca
- |www: http://www.cpsc.ucalgary.ca/~davidt
-